package com.example.springboot.mapper;

import com.example.springboot.entity.announcements;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface AnnouncementMapper {
    List<announcements> getAllAnnouncements();
    announcements getAnnouncementById(int announcementId);
    void addAnnouncement(announcements announcement);
    void updateAnnouncement(announcements announcement);
    void deleteAnnouncement(int announcementId);
}
